import request from '@/utils/request'

// 查询班级学生列表
export function listClassStudent(query) {
  return request({
    url: '/edu/classStudent/list',
    method: 'get',
    params: query
  })
}

// 查询班级学生详细
export function getClassStudent(classId) {
  return request({
    url: '/edu/classStudent/' + classId,
    method: 'get'
  })
}

// 新增班级学生
export function addClassStudent(data) {
  return request({
    url: '/edu/classStudent',
    method: 'post',
    data: data
  })
}

// 修改班级学生
export function updateClassStudent(data) {
  return request({
    url: '/edu/classStudent',
    method: 'put',
    data: data
  })
}

// 删除班级学生
export function delClassStudent(classId) {
  return request({
    url: '/edu/classStudent/' + classId,
    method: 'delete'
  })
}

// 导出班级学生
export function exportClassStudent(query) {
  return request({
    url: '/edu/classStudent/export',
    method: 'get',
    params: query
  })
}